<div id="right">

	<div id="left-login">
		
		<div class="top-panel">
			
			<img src='./images1/midbar_arrowdn.gif' width="13px" height="17px" alt='apróhirdetés' /> 

			<img src='./images1/midbar_bg.jpg' width="115px" height="17px" alt='apróhirdetés' /> 

			<img src='./images1/midbar_grips.jpg' width="21px" height="17px" alt='apróhirdetés' /> 

			<img src='./images1/midbar_shadowtop.gif' width="5" height="17px" alt='apróhirdetés' /> 
		
		</div>
		
		<div class='login-panel'>

			<form method='post' action='bejelentkezes.php' name='form-login'>
					
				<?php if ( ! isset( $_SESSION['userid'])) { ?>

					<p class="legend">Bejelentkezés</p>  
					
					<div><label>Email</label><input type='text' name="name" value='' /></div>
											
					<div><label>Jelszó</label><input type='password' name="password" value='' /></div>
										
					<input type='submit' name="login" value='Ok' />
																				
					<a href='regisztracio.php'>Regisztráció</a>
															
					<a href='elfelejtett-jelszo.php'>Elfelejtett jelszó</a> 
					
					<?php if (isset( $_SESSION['error'])) { ?>

						<hr />
					
						<?php foreach ($_SESSION['error'] as $serror) { ?>
							
							<p class='error'><?php print $serror; ?></p>
						
						<?php } ?>
					
					<?php } ?>     
			
				<?php } else { ?>
					
					<p class="legend">Üdvözöljük</p>
					
					<div><?php print User::get_username(); ?></div>
					
					<a href='hirdetesek.php?emailben=1&szoveg=<?php print User::get_email(); ?>'>Hirdetéseim</a>
					
					<a href='kedvencek.php'>Kedvencek</a>
					
					<a href='profilom.php'>Profilom</a>
					
					<a href='uj-jelszo.php'>Új jelszó</a>
					
					<a href='bejelentkezes.php?logout'>Kijelentkezés</a>
				
				<?php } ?>

			</form> 
			
		</div>

		<img src='./images1/menushadow_bottom182.gif' class="shadow2" alt='apróhirdetés' />  
		
	</div>

	<br />
	
	<div id="right-banner">	
		<?= file_get_contents("http://adserver.phpgenerator.co.uk/Serve/section/id/3") ?>	
	</div>
	
	<br />
	
	<div class="sidebox">
		<h3>Online felhasználók</h3>
		<p>Összesen: <?php print $average_online_users; ?></p>
	</div>
		
	<br />
	
	<div class="sidebox">
		<a name="top-10-backlink" href="#"></a>
		<h3>Top 10 backlink</h3>
		<?php foreach ($top_referers as $top_referer) {
			print "<p><a target='_blank' title='".$top_referer['ref_num']."' href='".$top_referer['ref_link']."'>".htmlspecialchars(substr($top_referer['ref_url'],0,20))."</a></p>";
		} ?>
	</div>
	
	<br />
	
	<div class="sidebox">
		<a name="friss-backlink" href="#"></a>
		<h3>Friss backlink</h3>
		<?php foreach ($new_referers as $new_referer) {
			print "<p><a target='_blank' title='".$new_referer['ref_num']."' href='".$new_referer['ref_link']."'>".getHostFromUrl($new_referer['ref_url'])."</a></p>";
			//print "<p><a target='_blank' title='".$new_referer['ref_num']."' href='".$new_referer['ref_link']."'>".substr($new_referer['ref_url'],0,20)."</a></p>";
		} ?>
	</div>
	
	<br />

	<p>
		<a href="http://validator.w3.org/check?uri=referer" target="_blank">
			<img src="./reklam/w3c/valid-xhtml10.png" alt="Valid XHTML 1.0 Transitional" />
		</a>
	</p>

	<br />
		
	<p>
		<a href="http://jigsaw.w3.org/css-validator/validator?uri=http://hirdetek.net&amp;profile=css3" target="_blank">
			<img src="./reklam/w3c/vcss-blue.gif" alt="Érvényes CSS!" />
		</a>
	</p>

	<br />
	
	<div class="sidebox">
		<a name="partnereink" href="#"></a>
		<h3>Partnereink</h3>
		<?php foreach ($linkpartners as $linkpartner) {
			print "<p><a target='_blank' href='".$linkpartner['lcs_link']."'>".$linkpartner['lcs_caption']."</a></p>";
		} ?>
	</div>
	
</div>
		 
<div class="clearfooter"></div>
